package com.link.common.packet.recv;

import com.link.common.util.BinaryUtils;
import io.netty.buffer.ByteBuf;

public record SendVerificationCodePacket(String mobile) {

    public static SendVerificationCodePacket fromBinary(ByteBuf buffer) {
        int mobileLength = buffer.readInt();

        String mobile = BinaryUtils.toString(buffer, mobileLength);



        return new SendVerificationCodePacket(mobile);


    }
}
